using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace manaTools
{
    public partial class DebugOutForm : Form
    {
        public DebugOutForm()
        {
            InitializeComponent();
        }

        public void writeText(string outString)
        {
            this.textBox1.Text = this.textBox1.Text + outString;
        }

        private void DebugOutForm_Resize(object sender, EventArgs e)
        {
            int iNewWidth = 0;
            int iNewHeight = 0;
            //new width = frmWidth - border left/right and margin left/right
            iNewWidth = this.Width - 3 - 3 -3 -3;
            //same here but -20 for realWindowHeight
            iNewHeight = this.Height - 3 - 3 -3 -3 -20;
            this.textBox1.Width = iNewWidth;
            this.textBox1.Height = iNewHeight;
        }
    }
}